package mt

import (
	"cftgo/cftf/boot/app"
	"cftgo/cftf/sysutils"
	"fmt"
)

type table struct {
	LoginCluster *LoginClusterTable
}

func (this *table) Init() {
	this.LoginCluster = sysutils.New(func(this *LoginClusterTable) {
		this.FileName = fmt.Sprintf("../config/zone%d/node%d/loginserver.cluster.json",
			app.GetZoneId(),
			app.GetNodeId())
		this.PrimKey = "instance_id"
	})
}

func (this *table) UnInit() {
}

var Table = new(table)
